<template>
  <el-button type="primary" class="c-icon-btn" @click="$emit('click', $event)">
    <c-icon :name="name"></c-icon>
  </el-button>
</template>
<script>
export default {
  name: 'CIconBtn',
  components: {},
  props: {
    name: { type: String, default: '' }
  },
  data() {
    return {}
  },
  computed: {},
  watch: {},
  beforeCreate() {},
  created() {},
  beforeMount() {},
  mounted() {},
  beforeUpdate() {},
  updated() {},
  activated() {},
  deactivated() {},
  beforeDestroy() {},
  destroyed() {},
  methods: {}
}
</script>
<style lang="scss">
// @include web {
.c-icon-btn {
  padding: 1px;
  font-size: 0;
  .c-icon {
    font-size: 20px;
  }
}
// }
</style>
